package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_l_ck_goods", desc = "背包道具变更", autoSave = true, uploadCk = true)
public class LogGoods extends ServerBaseLog {
	@FieldTypeAnnotation(desc = "道具id", isIndex = true)
	private int goodsId;
	@FieldTypeAnnotation(desc = "用户id", isIndex = true)
	private long userId;
	@FieldTypeAnnotation(desc = "是否获得")
	private boolean isGet;
	@FieldTypeAnnotation(desc = "变更数量")
	private long num;
	@FieldTypeAnnotation(desc = "当前数量")
	private long nowNum;
	@FieldTypeAnnotation(desc = "途径")
	private int way;
	@FieldTypeAnnotation(desc = "额外参数")
	private String param;
	@FieldTypeAnnotation(desc = "vip经验")
	private long vipExp;

	public LogGoods(int goodsId, long userId, boolean isGet, long num, long nowNum, int way, String param, long vipExp) {
		this.goodsId = goodsId;
		this.userId = userId;
		this.isGet = isGet;
		this.num = num;
		this.nowNum = nowNum;
		this.way = way;
		this.param = param;
		this.vipExp = vipExp;
		this.time = System.currentTimeMillis();
	}

	@Override
	public long getUserId() {
		return userId;
	}

	public boolean getType() {
		return isGet;
	}

	public int getGoodsId() {
		return goodsId;
	}

	public long getNum() {
		return num;
	}

	public long getNowNum() {
		return nowNum;
	}

	public int getWay() {
		return way;
	}

	public String getParam() {
		return param;
	}

	public long getVipExp() {
		return vipExp;
	}
}
